import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/plan_associated_tasks_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/plan_associated_tasks_entity.g.dart';

@JsonSerializable()
class PlanAssociatedTasksEntity {
  PlanAssociatedTasksEntity();

  factory PlanAssociatedTasksEntity.fromJson(Map<String, dynamic> json) => $PlanAssociatedTasksEntityFromJson(json);
  String? createBy = '';
  String? createById = '';
  String? createDate = '';
  int? dangerNum = 0;
  String? deleted = '';
  String? id = '';
  int? lateNum = 0;
  int? numberOfTasksToBeCompleted = 0;
  String? planId = '';
  int? reExaminationNum = 0;
  String? riskObjectId = '';
  String? riskObjectName = '';

  /// 任务id
  String? riskUnitId = '';
  String? riskUnitName = '';
  String? taskId = '';
  int? taskNum = 0;
  String? updateBy = '';
  String? updateById = '';
  String? updateDate = '';

  Map<String, dynamic> toJson() => $PlanAssociatedTasksEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
